package org.example.aiagent.demo.rag.deltaActionGun;

import jakarta.annotation.Resource;
import org.example.aiagent.demo.tools.GunsInfoTool;
import org.example.aiagent.demo.tools.PDFGenerationTool;
import org.example.aiagent.demo.tools.WebScrapingTool;
import org.example.aiagent.demo.tools.WebSearchTool;
import org.springframework.ai.tool.ToolCallback;
import org.springframework.ai.tool.ToolCallbacks;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 集中的工具注册类
 */
@Configuration
public class DeltaActionGunToolRegistration {

    @Resource
    private GunsInfoTool gunsInfoTool;

    @Bean
    public ToolCallback[] deltaActionGunTools() {
        return ToolCallbacks.from(
                gunsInfoTool
        );
    }
}
